﻿package net.wangit.dev.version;

public class VersionFactory {

	private VersionFactory() {
	}

	public static Version getVersion(int type) {
		switch (type) {
		case 1:
			return new TableVersion();

		case 2:
			return new UnitVersion();

		case 3:
			return new EnumerationVersion();

		case 4:
			return new TreeVersion();

		case 5:
			return new ChartVersion();

		case 6:
			return new DataPrivilegeVersion();

		case 7:
			return new IncrementorVersion();
		}
		return null;
	}
}
